<!-- /* Description for file.
 * 项目状态列表
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/projectstates
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0612
 * @lastmodified  张海杰2011年0613
 */
 -->



<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
//print_r($customertypes);
?>
<script type="text/javascript">
	function getDelStr() {
		var delArr = $("#f2 :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要删除的项!");
			return;
		}
		if(!confirm("确定删除?"))
		{
			return;
		}
		var str = "";
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		//window.alert(str);
		$("#delStr").val(str);
		//window.alert($("#delStr").val());
		$("#f2").submit();
	}
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Customer Managements');//一级目录
										   echo '>';echo __('Customer Managements');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Customer Managements Detail',true).'&nbsp;&nbsp;&nbsp;'.$datas['Companymanage']['name']);//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
</div>
<table>
	<tr>
		<td width="50"></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/initDetail/<?php echo $companyid?>">基本信息</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/linkmanlist/<?php echo $companyid?>">联系人</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/projectlist/<?php echo $companyid?>">项目列表</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/initDetailRemark/<?php echo $companyid?>">备注信息</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/contactallinfo/<?php echo $companyid?>">联系日志</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/positionallinfo/<?php echo $companyid?>">职位列表</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/contractmanagementlist/<?php echo $companyid?>"  style="color:red;">合同管理</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/feemanageinit/<?php echo $companyid?>">费用统计</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/staffallinfo/<?php echo $companyid?>">企业员工</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/resumeReportAllinfo/<?php echo $companyid?>">简历报告</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/appendixUpload/<?php echo $companyid?>">附件列表</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/sameCompany/<?php echo $companyid?>">同行公司</a></td>
	</tr>
</table>
<div class="tabflex">
<?php echo $form->create('Companymanage',array('action'=>'deletesomecontractmanagement','type'=> 'post','id'=>'f2'));?>
<?php echo $form->hidden('delStr',array('name'=>'id','id'=>'delStr'));?>
<?php echo $form->hidden('companyid',array('name'=>'companyid','id'=>'companyid','default'=>$companyid));?>

	<table width="50%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
		<tr>
			<td width="50"></td>
			<td width="100"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/addcontractmanagementinit/<?php echo $companyid?>" class="btn2"><?php //echo $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0'));?>
		 			添加</a>
			</td>
			<td width="100"><a onclick='getDelStr()' class="btn2"><?php //echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0','onclick'=>'getDelStr()'));?>删除</a>
			</td>								
			<td>&nbsp;</td> 									
		</tr>
	</table>

<!-- 项目状态列表 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo __('Selected');?></th>
		<th ><?php echo __('合同名称');?></th>
		<th ><?php echo __('公司名称');?></th>
		<th ><?php echo __('合同金额');?></th>
		<th ><?php echo __('签约人');?></th>
		<th ><?php echo __('签约时间');?></th>
		<th ><?php echo __('开始时间');?></th>
		<th ><?php echo __('结束时间');?></th>
		<th colspan="2" width="80px;"><?php echo __('Operate') ?></th>
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php 
	foreach ($results as $data1): 
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 批量删除选择 -->				
			<?php echo $form->checkbox($data1['Contractmanagement']['id'], array('value' => $data1['Contractmanagement']['id']));?>
			</td>
			<td><?php echo "<a href='".ROOT_WEB_PATH."/companymanages/contractmanagementinfo/".$data1['Contractmanagement']['id']."' style='color:blue'>".$data1['Contractmanagement']['name']."</a>"; ?></td>
			<td><?php echo "<a href='".ROOT_WEB_PATH."/companymanages/initDetail/$companyid' style='color:blue'>".$datas['Companymanage']['name']."</a>"; ?></td>
			<td><?php echo $data1['Contractmanagement']['amount']; ?></td>
			<td><?php echo $data1['Contractmanagement']['signatory']; ?></td>
			<td><?php echo $data1['Contractmanagement']['datesigned']; ?></td>
			<td><?php echo $data1['Contractmanagement']['startTime']; ?></td>
			<td><?php echo $data1['Contractmanagement']['endTime']; ?></td>
			<td>
			<?php echo $html->link( $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0')), '/companymanages/delcontractmanagement/'.$data1['Contractmanagement']['id']."/".$companyid, null, 
			__('Are you sure you want to delete', true) .' '. $data1['Contractmanagement']['name'] . '?',array('escape'=>false));  ?> 		
			</td><!--  __('delete', true) 删除、提示 -->
			<td>
			<?php echo $html->link( $html->image('edit.gif', array('alt' =>  __('Edit', true),'border'=>'0')), '/companymanages/editcontractmanagementinit/'.$companyid."/".$data1['Contractmanagement']['id'], null,null,
			array('escape'=>false));  ?> 	
			</td><!--  __('edit', true) 修改 -->
		</tr> 
	<?php endforeach; ?>  
</table>
</div>

<!-- 项目状态列表 -->

<?php echo $form->end();?>
</div>